using System;
using System.Collections.Generic;
using System.IO.Pipes;
using System.Text;

namespace VisualGTest.Binding
{
    class PipeStreamFactory : IPipeStreamFactory
    {
        /// <summary>
        /// Creates a default message-based, asynchronous server pipe stream.
        /// </summary>
        /// <param name="pipeName"></param>
        /// <returns></returns>
        public NamedPipeServerStream CreateServer(string pipeName)
        {
            return new NamedPipeServerStream(pipeName, PipeDirection.InOut,
                1, PipeTransmissionMode.Message, PipeOptions.Asynchronous);
        }
    }
}
